package com.isdepci.project.carbon.mapper;

import com.isdepci.project.carbon.domain.BDirectRelease;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 直接释放Mapper接口
 *
 * @author isdepci
 * @date 2025-03-29
 */
public interface BDirectReleaseMapper
{

    // 按照年份查询
    List<BDirectRelease> selectByYear(@Param("projectId") Long projectId, @Param("startYear") String startYear, @Param("endYear") String endYear);

    // 按照月份查询
    List<BDirectRelease> selectByMonth(@Param("projectId") Long projectId, @Param("startMonth") String startMonth, @Param("endMonth") String endMonth);


    /**
     * 查询直接释放
     */
     BDirectRelease selectBDirectReleaseById(Long id);

    /**
     * 查询直接释放列表
     */
     List<BDirectRelease> selectBDirectReleaseList(BDirectRelease bDirectRelease);

    /**
     * 新增直接释放
     */
     int insertBDirectRelease(BDirectRelease bDirectRelease);

    /**
     * 修改直接释放
     */
     int updateBDirectRelease(BDirectRelease bDirectRelease);

    /**
     * 删除直接释放
     */
     int deleteBDirectReleaseById(Long id);

    /**
     * 批量删除直接释放
     */
     int deleteBDirectReleaseByIds(Long[] ids);


    void insertList(@Param("list") List<BDirectRelease> list);


    List<BDirectRelease> selectBDirectReleaseByProjectId(Long projectId);
}
